problem using charpits method